Integrand size = 31, antiderivative size = 1304 \[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=-\frac {b d p q r^2 \log (a+b x)}{h (b g-a h) (d g-c h)}+\frac {d p q r^2 \log (a+b x)}{h (d g-c h) (g+h x)}-\frac {b p^2 r^2 (a+b x) \log (a+b x)}{(b g-a h)^2 (g+h x)}-\frac {b d p q r^2 \log (c+d x)}{h (b g-a h) (d g-c h)}+\frac {b p q r^2 \log (c+d x)}{h (b g-a h) (g+h x)}-\frac {d q^2 r^2 (c+d x) \log (c+d x)}{(d g-c h)^2 (g+h x)}+\frac {b^2 p q r^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{h (b g-a h)^2}+\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h) (g+h x)}-\frac {d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h) (g+h x)}-\frac {b^2 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h)^2}-\frac {d^2 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h)^2}-\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {b^2 p^2 r^2 \log (g+h x)}{h (b g-a h)^2}+\frac {2 b d p q r^2 \log (g+h x)}{h (b g-a h) (d g-c h)}+\frac {d^2 q^2 r^2 \log (g+h x)}{h (d g-c h)^2}+\frac {b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (b g-a h)^2}+\frac {d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (d g-c h)^2}-\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (g+h x)}{b g-a h}\right )}{h (d g-c h)^2}-\frac {b^2 p q r^2 \log (c+d x) \log \left (\frac {d (g+h x)}{d g-c h}\right )}{h (b g-a h)^2}-\frac {b^2 p^2 r^2 \log (a+b x) \log \left (1+\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}-\frac {d^2 q^2 r^2 \log (c+d x) \log \left (1+\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}+\frac {b^2 p^2 r^2 \operatorname {PolyLog}\left (2,-\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}+\frac {d^2 p q r^2 \operatorname {PolyLog}\left (2,-\frac {d (a+b x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {d^2 p q r^2 \operatorname {PolyLog}\left (2,-\frac {h (a+b x)}{b g-a h}\right )}{h (d g-c h)^2}+\frac {d^2 q^2 r^2 \operatorname {PolyLog}\left (2,-\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}+\frac {b^2 p q r^2 \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{b c-a d}\right )}{h (b g-a h)^2}-\frac {b^2 p q r^2 \operatorname {PolyLog}\left (2,-\frac {h (c+d x)}{d g-c h}\right )}{h (b g-a h)^2} \]
[Out]
Time = 0.93 (sec) , antiderivative size = 1304, normalized size of antiderivative = 1.00, number of steps used = 43, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.452, Rules used = {2584, 2593, 2458, 2389, 2379, 2438, 2351, 31, 2465, 2441, 2440, 2442, 36, 46} \[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\frac {p q r^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x) b^2}{h (b g-a h)^2}-\frac {p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) b^2}{h (b g-a h)^2}+\frac {p^2 r^2 \log (g+h x) b^2}{h (b g-a h)^2}+\frac {p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x) b^2}{h (b g-a h)^2}-\frac {p q r^2 \log (c+d x) \log \left (\frac {d (g+h x)}{d g-c h}\right ) b^2}{h (b g-a h)^2}-\frac {p^2 r^2 \log (a+b x) \log \left (\frac {b g-a h}{h (a+b x)}+1\right ) b^2}{h (b g-a h)^2}+\frac {p^2 r^2 \operatorname {PolyLog}\left (2,-\frac {b g-a h}{h (a+b x)}\right ) b^2}{h (b g-a h)^2}+\frac {p q r^2 \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{b c-a d}\right ) b^2}{h (b g-a h)^2}-\frac {p q r^2 \operatorname {PolyLog}\left (2,-\frac {h (c+d x)}{d g-c h}\right ) b^2}{h (b g-a h)^2}-\frac {d p q r^2 \log (a+b x) b}{h (b g-a h) (d g-c h)}-\frac {p^2 r^2 (a+b x) \log (a+b x) b}{(b g-a h)^2 (g+h x)}-\frac {d p q r^2 \log (c+d x) b}{h (b g-a h) (d g-c h)}+\frac {p q r^2 \log (c+d x) b}{h (b g-a h) (g+h x)}-\frac {p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) b}{h (b g-a h) (g+h x)}+\frac {2 d p q r^2 \log (g+h x) b}{h (b g-a h) (d g-c h)}-\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {d p q r^2 \log (a+b x)}{h (d g-c h) (g+h x)}-\frac {d q^2 r^2 (c+d x) \log (c+d x)}{(d g-c h)^2 (g+h x)}+\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {d^2 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h)^2}-\frac {d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h) (g+h x)}+\frac {d^2 q^2 r^2 \log (g+h x)}{h (d g-c h)^2}+\frac {d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (d g-c h)^2}-\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (g+h x)}{b g-a h}\right )}{h (d g-c h)^2}-\frac {d^2 q^2 r^2 \log (c+d x) \log \left (\frac {d g-c h}{h (c+d x)}+1\right )}{h (d g-c h)^2}+\frac {d^2 p q r^2 \operatorname {PolyLog}\left (2,-\frac {d (a+b x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {d^2 p q r^2 \operatorname {PolyLog}\left (2,-\frac {h (a+b x)}{b g-a h}\right )}{h (d g-c h)^2}+\frac {d^2 q^2 r^2 \operatorname {PolyLog}\left (2,-\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2} \]
[In]
[Out]
Rule 31
Rule 36
Rule 46
Rule 2351
Rule 2379
Rule 2389
Rule 2438
Rule 2440
Rule 2441
Rule 2442
Rule 2458
Rule 2465
Rule 2584
Rule 2593
Rubi steps \begin{align*} \text {integral}& = -\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {(b p r) \int \frac {\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(a+b x) (g+h x)^2} \, dx}{h}+\frac {(d q r) \int \frac {\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(c+d x) (g+h x)^2} \, dx}{h} \\ & = -\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {\left (b p^2 r^2\right ) \int \frac {\log (a+b x)}{(a+b x) (g+h x)^2} \, dx}{h}+\frac {\left (b p q r^2\right ) \int \frac {\log (c+d x)}{(a+b x) (g+h x)^2} \, dx}{h}+\frac {\left (d p q r^2\right ) \int \frac {\log (a+b x)}{(c+d x) (g+h x)^2} \, dx}{h}+\frac {\left (d q^2 r^2\right ) \int \frac {\log (c+d x)}{(c+d x) (g+h x)^2} \, dx}{h}-\frac {\left (b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \frac {1}{(a+b x) (g+h x)^2} \, dx}{h}-\frac {\left (d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \frac {1}{(c+d x) (g+h x)^2} \, dx}{h} \\ & = -\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {\left (p^2 r^2\right ) \text {Subst}\left (\int \frac {\log (x)}{x \left (\frac {b g-a h}{b}+\frac {h x}{b}\right )^2} \, dx,x,a+b x\right )}{h}+\frac {\left (b p q r^2\right ) \int \left (\frac {b^2 \log (c+d x)}{(b g-a h)^2 (a+b x)}-\frac {h \log (c+d x)}{(b g-a h) (g+h x)^2}-\frac {b h \log (c+d x)}{(b g-a h)^2 (g+h x)}\right ) \, dx}{h}+\frac {\left (d p q r^2\right ) \int \left (\frac {d^2 \log (a+b x)}{(d g-c h)^2 (c+d x)}-\frac {h \log (a+b x)}{(d g-c h) (g+h x)^2}-\frac {d h \log (a+b x)}{(d g-c h)^2 (g+h x)}\right ) \, dx}{h}+\frac {\left (q^2 r^2\right ) \text {Subst}\left (\int \frac {\log (x)}{x \left (\frac {d g-c h}{d}+\frac {h x}{d}\right )^2} \, dx,x,c+d x\right )}{h}-\frac {\left (b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \left (\frac {b^2}{(b g-a h)^2 (a+b x)}-\frac {h}{(b g-a h) (g+h x)^2}-\frac {b h}{(b g-a h)^2 (g+h x)}\right ) \, dx}{h}-\frac {\left (d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )\right ) \int \left (\frac {d^2}{(d g-c h)^2 (c+d x)}-\frac {h}{(d g-c h) (g+h x)^2}-\frac {d h}{(d g-c h)^2 (g+h x)}\right ) \, dx}{h} \\ & = -\frac {b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h) (g+h x)}-\frac {d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h) (g+h x)}-\frac {b^2 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h)^2}-\frac {d^2 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h)^2}-\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (b g-a h)^2}+\frac {d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (d g-c h)^2}-\frac {\left (p^2 r^2\right ) \text {Subst}\left (\int \frac {\log (x)}{\left (\frac {b g-a h}{b}+\frac {h x}{b}\right )^2} \, dx,x,a+b x\right )}{b g-a h}+\frac {\left (b p^2 r^2\right ) \text {Subst}\left (\int \frac {\log (x)}{x \left (\frac {b g-a h}{b}+\frac {h x}{b}\right )} \, dx,x,a+b x\right )}{h (b g-a h)}-\frac {\left (b^2 p q r^2\right ) \int \frac {\log (c+d x)}{g+h x} \, dx}{(b g-a h)^2}+\frac {\left (b^3 p q r^2\right ) \int \frac {\log (c+d x)}{a+b x} \, dx}{h (b g-a h)^2}-\frac {\left (b p q r^2\right ) \int \frac {\log (c+d x)}{(g+h x)^2} \, dx}{b g-a h}-\frac {\left (d^2 p q r^2\right ) \int \frac {\log (a+b x)}{g+h x} \, dx}{(d g-c h)^2}+\frac {\left (d^3 p q r^2\right ) \int \frac {\log (a+b x)}{c+d x} \, dx}{h (d g-c h)^2}-\frac {\left (d p q r^2\right ) \int \frac {\log (a+b x)}{(g+h x)^2} \, dx}{d g-c h}-\frac {\left (q^2 r^2\right ) \text {Subst}\left (\int \frac {\log (x)}{\left (\frac {d g-c h}{d}+\frac {h x}{d}\right )^2} \, dx,x,c+d x\right )}{d g-c h}+\frac {\left (d q^2 r^2\right ) \text {Subst}\left (\int \frac {\log (x)}{x \left (\frac {d g-c h}{d}+\frac {h x}{d}\right )} \, dx,x,c+d x\right )}{h (d g-c h)} \\ & = \frac {d p q r^2 \log (a+b x)}{h (d g-c h) (g+h x)}-\frac {b p^2 r^2 (a+b x) \log (a+b x)}{(b g-a h)^2 (g+h x)}+\frac {b p q r^2 \log (c+d x)}{h (b g-a h) (g+h x)}-\frac {d q^2 r^2 (c+d x) \log (c+d x)}{(d g-c h)^2 (g+h x)}+\frac {b^2 p q r^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{h (b g-a h)^2}+\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h) (g+h x)}-\frac {d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h) (g+h x)}-\frac {b^2 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h)^2}-\frac {d^2 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h)^2}-\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (b g-a h)^2}+\frac {d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (d g-c h)^2}-\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (g+h x)}{b g-a h}\right )}{h (d g-c h)^2}-\frac {b^2 p q r^2 \log (c+d x) \log \left (\frac {d (g+h x)}{d g-c h}\right )}{h (b g-a h)^2}-\frac {b^2 p^2 r^2 \log (a+b x) \log \left (1+\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}-\frac {d^2 q^2 r^2 \log (c+d x) \log \left (1+\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}+\frac {\left (b p^2 r^2\right ) \text {Subst}\left (\int \frac {1}{\frac {b g-a h}{b}+\frac {h x}{b}} \, dx,x,a+b x\right )}{(b g-a h)^2}+\frac {\left (b^2 p^2 r^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {b g-a h}{h x}\right )}{x} \, dx,x,a+b x\right )}{h (b g-a h)^2}-\frac {\left (b^2 d p q r^2\right ) \int \frac {\log \left (\frac {d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{h (b g-a h)^2}+\frac {\left (b^2 d p q r^2\right ) \int \frac {\log \left (\frac {d (g+h x)}{d g-c h}\right )}{c+d x} \, dx}{h (b g-a h)^2}-\frac {\left (b d p q r^2\right ) \int \frac {1}{(c+d x) (g+h x)} \, dx}{h (b g-a h)}-\frac {\left (b d^2 p q r^2\right ) \int \frac {\log \left (\frac {b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{h (d g-c h)^2}+\frac {\left (b d^2 p q r^2\right ) \int \frac {\log \left (\frac {b (g+h x)}{b g-a h}\right )}{a+b x} \, dx}{h (d g-c h)^2}-\frac {\left (b d p q r^2\right ) \int \frac {1}{(a+b x) (g+h x)} \, dx}{h (d g-c h)}+\frac {\left (d q^2 r^2\right ) \text {Subst}\left (\int \frac {1}{\frac {d g-c h}{d}+\frac {h x}{d}} \, dx,x,c+d x\right )}{(d g-c h)^2}+\frac {\left (d^2 q^2 r^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {d g-c h}{h x}\right )}{x} \, dx,x,c+d x\right )}{h (d g-c h)^2} \\ & = \frac {d p q r^2 \log (a+b x)}{h (d g-c h) (g+h x)}-\frac {b p^2 r^2 (a+b x) \log (a+b x)}{(b g-a h)^2 (g+h x)}+\frac {b p q r^2 \log (c+d x)}{h (b g-a h) (g+h x)}-\frac {d q^2 r^2 (c+d x) \log (c+d x)}{(d g-c h)^2 (g+h x)}+\frac {b^2 p q r^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{h (b g-a h)^2}+\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h) (g+h x)}-\frac {d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h) (g+h x)}-\frac {b^2 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h)^2}-\frac {d^2 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h)^2}-\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {b^2 p^2 r^2 \log (g+h x)}{h (b g-a h)^2}+\frac {d^2 q^2 r^2 \log (g+h x)}{h (d g-c h)^2}+\frac {b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (b g-a h)^2}+\frac {d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (d g-c h)^2}-\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (g+h x)}{b g-a h}\right )}{h (d g-c h)^2}-\frac {b^2 p q r^2 \log (c+d x) \log \left (\frac {d (g+h x)}{d g-c h}\right )}{h (b g-a h)^2}-\frac {b^2 p^2 r^2 \log (a+b x) \log \left (1+\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}-\frac {d^2 q^2 r^2 \log (c+d x) \log \left (1+\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}+\frac {b^2 p^2 r^2 \text {Li}_2\left (-\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}+\frac {d^2 q^2 r^2 \text {Li}_2\left (-\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}-\frac {\left (b^2 p q r^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{h (b g-a h)^2}+\frac {\left (b^2 p q r^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {h x}{d g-c h}\right )}{x} \, dx,x,c+d x\right )}{h (b g-a h)^2}-\frac {\left (d^2 p q r^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{h (d g-c h)^2}+\frac {\left (d^2 p q r^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {h x}{b g-a h}\right )}{x} \, dx,x,a+b x\right )}{h (d g-c h)^2}+2 \frac {\left (b d p q r^2\right ) \int \frac {1}{g+h x} \, dx}{(b g-a h) (d g-c h)}-\frac {\left (b^2 d p q r^2\right ) \int \frac {1}{a+b x} \, dx}{h (b g-a h) (d g-c h)}-\frac {\left (b d^2 p q r^2\right ) \int \frac {1}{c+d x} \, dx}{h (b g-a h) (d g-c h)} \\ & = -\frac {b d p q r^2 \log (a+b x)}{h (b g-a h) (d g-c h)}+\frac {d p q r^2 \log (a+b x)}{h (d g-c h) (g+h x)}-\frac {b p^2 r^2 (a+b x) \log (a+b x)}{(b g-a h)^2 (g+h x)}-\frac {b d p q r^2 \log (c+d x)}{h (b g-a h) (d g-c h)}+\frac {b p q r^2 \log (c+d x)}{h (b g-a h) (g+h x)}-\frac {d q^2 r^2 (c+d x) \log (c+d x)}{(d g-c h)^2 (g+h x)}+\frac {b^2 p q r^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{h (b g-a h)^2}+\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {b p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h) (g+h x)}-\frac {d q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h) (g+h x)}-\frac {b^2 p r \log (a+b x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (b g-a h)^2}-\frac {d^2 q r \log (c+d x) \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right )}{h (d g-c h)^2}-\frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{2 h (g+h x)^2}+\frac {b^2 p^2 r^2 \log (g+h x)}{h (b g-a h)^2}+\frac {2 b d p q r^2 \log (g+h x)}{h (b g-a h) (d g-c h)}+\frac {d^2 q^2 r^2 \log (g+h x)}{h (d g-c h)^2}+\frac {b^2 p r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (b g-a h)^2}+\frac {d^2 q r \left (p r \log (a+b x)+q r \log (c+d x)-\log \left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )\right ) \log (g+h x)}{h (d g-c h)^2}-\frac {d^2 p q r^2 \log (a+b x) \log \left (\frac {b (g+h x)}{b g-a h}\right )}{h (d g-c h)^2}-\frac {b^2 p q r^2 \log (c+d x) \log \left (\frac {d (g+h x)}{d g-c h}\right )}{h (b g-a h)^2}-\frac {b^2 p^2 r^2 \log (a+b x) \log \left (1+\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}-\frac {d^2 q^2 r^2 \log (c+d x) \log \left (1+\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}+\frac {b^2 p^2 r^2 \text {Li}_2\left (-\frac {b g-a h}{h (a+b x)}\right )}{h (b g-a h)^2}+\frac {d^2 p q r^2 \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{h (d g-c h)^2}-\frac {d^2 p q r^2 \text {Li}_2\left (-\frac {h (a+b x)}{b g-a h}\right )}{h (d g-c h)^2}+\frac {d^2 q^2 r^2 \text {Li}_2\left (-\frac {d g-c h}{h (c+d x)}\right )}{h (d g-c h)^2}+\frac {b^2 p q r^2 \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{h (b g-a h)^2}-\frac {b^2 p q r^2 \text {Li}_2\left (-\frac {h (c+d x)}{d g-c h}\right )}{h (b g-a h)^2} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(12086\) vs. \(2(1304)=2608\).
Time = 2.89 (sec) , antiderivative size = 12086, normalized size of antiderivative = 9.27 \[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\text {Result too large to show} \]
[In]
[Out]
\[\int \frac {{\ln \left (e \left (f \left (b x +a \right )^{p} \left (d x +c \right )^{q}\right )^{r}\right )}^{2}}{\left (h x +g \right )^{3}}d x\]
[In]
[Out]
\[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\int { \frac {\log \left (\left ({\left (b x + a\right )}^{p} {\left (d x + c\right )}^{q} f\right )^{r} e\right )^{2}}{{\left (h x + g\right )}^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.41 (sec) , antiderivative size = 1857, normalized size of antiderivative = 1.42 \[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\int { \frac {\log \left (\left ({\left (b x + a\right )}^{p} {\left (d x + c\right )}^{q} f\right )^{r} e\right )^{2}}{{\left (h x + g\right )}^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\log ^2\left (e \left (f (a+b x)^p (c+d x)^q\right )^r\right )}{(g+h x)^3} \, dx=\int \frac {{\ln \left (e\,{\left (f\,{\left (a+b\,x\right )}^p\,{\left (c+d\,x\right )}^q\right )}^r\right )}^2}{{\left (g+h\,x\right )}^3} \,d x \]
[In]
[Out]